package com.nuoniu.sibanyun.entity.erp.in;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 货位
 * </p>
 *
 * @author 小啊刚
 * @since 2020-09-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("scb_storagebin")
@ApiModel(value="InInventoryLocation对象", description="货位")
public class InInventoryLocation extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "上级id")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "所有父节id")
    @TableField("parent_ids")
    private String parentIds;

    @ApiModelProperty(value = "所有父节名称")
    @TableField("tree_names")
    private String treeNames;

    @ApiModelProperty(value = "级次")
    @TableField("tree_level")
    private Integer treeLevel;

    @ApiModelProperty(value = "是否最末级")
    @TableField("tree_leaf")
    private Boolean treeLeaf;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "货位编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "使用编码级次")
    @TableField("grade_rule_level")
    private Integer gradeRuleLevel;

    @ApiModelProperty(value = "使用的编码规则")
    @TableField("grade_rule_str")
    private String gradeRuleStr;

    @ApiModelProperty(value = "货位名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "助记码 ")
    @TableField("shorthand")
    private String shorthand;

    @ApiModelProperty(value = "仓库id")
    @TableField("warehouse_id")
    private Integer warehouseId;

    @ApiModelProperty(value = "仓库名称")
    @TableField("warehouse_name")
    private String warehouseName;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "状态0停用 1启用 2删除")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "制单日期 ")
    @TableField("madeDate")
    private LocalDateTime madeDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "关键字查询")
    @TableField(exist = false)
    private String keyWord;

    @ApiModelProperty(value = "货位量")
    @TableField(exist = false)
    private String inventoryQuantity;

    @ApiModelProperty(value = "物料ID集合")
    @TableField(exist = false)
    private List<Integer> inventoryIds;

}
